<template>
  <div id="detail_param_info">
    <table class="table_info">
      <tr v-for="item in paramInfo.infos" :key="item">
        <td>{{item.key}}</td>
        <td>{{item.value}}</td>
      </tr>
    </table>

    <table class="table_size">
      <tr v-for="item in paramList" :key="item">
        <td v-for="item2 in  item" :key="item2">{{ item2 }}</td>
      </tr>
    </table>
    <table class="table_size">
      <tr v-for="item in paramList2" :key="item">
        <td v-for="item2 in  item" :key="item2">{{ item2 }}</td>
      </tr>
    </table>
  </div>
</template>

<script>
export default {
  name: "DetailParamInfo",
  props: {
    paramInfo:{
      type:Object,
      default(){
        return {}
      }
    },
    data(){
      return{
        paramList:[],
        paramList2:[],
      }
    }
  },
  created() {
    console.log(this.paramInfo);
      this.paramList=this.paramInfo[0];
      this.paramList2=this.paramInfo[1];
  }
}
</script>

<style scoped>
#detail_param_info{
  position: relative;

  width: 97%;
  margin: 10px auto;
}
.table_info,.table_size{
  width: 100%;
  text-align: center;
  background-color: #FFFFFF;
}
.table_info td,.table_size td{
  height: 30px;
  line-height: 30px;
  border-bottom: 2px solid #cccccc;
}
.table_info td:nth-of-type(1){
  min-width: 100px;
}
.table_size{
  margin-top: 10px;
}
</style>
